package com.enation.app.shop.front.policyInsurance.service;


import com.enation.app.shop.front.policyInsurance.entity.InsuranceCheck;

import java.util.Map;
/**
 * 投保审核表管理
 */
public interface InsuranceCheckMapper {
    /**
     *添加保险审核内容
     * @param record
     * @return
     */
    int insert(InsuranceCheck record);

    /**
     * 根据id查找保险审核内容
     * @param warranty_id
     * @return
     */
    InsuranceCheck selectByWarrantyId(Integer warranty_id);

    /**
     * 更新保险审核内容
     * @param insuranceCheck
     * @return
     */
    int updateByWarrantyId(InsuranceCheck insuranceCheck);

    /**
     * 将保险已勘查订单更新为审核通过/不通过
     * @param inPolicy_id
     * @param
     * @return
     */
    int updateByWarrantyId(int inPolicy_id,Map insuranceCheckMap);
}